package com.starlink.model.dtomapper;

import com.starlink.model.domain.MallBooksDetailDO;
import com.starlink.model.request.MallBooksDetailRequest;
import com.starlink.model.vo.MallBooksDetailVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface MallBooksDetailDtoMapper {

    MallBooksDetailDtoMapper INSTANCE = Mappers.getMapper(MallBooksDetailDtoMapper.class);

    /**
    * DO to VO
    * @param mallBooksDetailDO
    * @return
    */
    MallBooksDetailVO do2VO(MallBooksDetailDO mallBooksDetailDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    MallBooksDetailDO request2DO(MallBooksDetailRequest request);
}
